<template>
  <div>
      <section id="TopNav">
          <div id="top">
              <span id="return">&lt;</span>
              <div id="Toptext">我的卡包</div>
          </div>
      </section>
      <div class="main">
          <div class="card-type">
              <div class="card">
                  <p>余额(元)</p>
                  <p>0</p>
                  <p>平台通用</p>
              </div>
              <div class="card">
                  <p>联名卡(元)</p>
                  <p>0</p>
                  <p>多店可用</p>
              </div>
              <div class="card">
                  <p>店铺卡(元)</p>
                  <p>0</p>
                  <p>单店可用</p>
              </div>
          </div>

          <p class="recommend-buy">推荐购买</p>

          <div class="black-card">
             <img class="card-logo" src="../../../public/logo.png" alt="">
             <div class="card-text">
                 <div>
                     <span class="unit">充￥</span>
                     <span class="card-pirce">500.00</span>
                 </div>
                 <div>
                     <span class="unit">得￥</span>
                     <span class="card-pirce">600.00</span>
                 </div>
                 <div class="unit">有效期至2022.12.31</div>
             </div>
             <button class="card-buy">立即购买</button>
          </div>


          <div class="black-card">
             <img class="card-logo" src="../../../public/logo.png" alt="">
             <div class="card-text">
                 <div>
                     <span class="unit">充￥</span>
                     <span class="card-pirce">1000.00</span>
                 </div>
                 <div>
                     <span class="unit">得￥</span>
                     <span class="card-pirce">1200.00</span>
                 </div>
                 <div class="unit">有效期至2022.12.31</div>
             </div>
             <button class="card-buy">立即购买</button>
          </div>



          <div class="black-card">
             <img class="card-logo" src="../../../public/logo.png" alt="">
             <div class="card-text">
                 <div>
                     <span class="unit">充￥</span>
                     <span class="card-pirce">3000.00</span>
                 </div>
                 <div>
                     <span class="unit">得￥</span>
                     <span class="card-pirce">3600.00</span>
                 </div>
                 <div class="unit">有效期至2022.12.31</div>
             </div>
             <button class="card-buy">立即购买</button>
          </div>
      </div>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
      #TopNav{
        width: 100%;
        height: 1rem;
        position: fixed;
        top: 0;
        background-color:rgb(254, 254, 254);
    }
    #top{
        position: relative;
    }
    #return{
        font-size: 0.3rem;
        position: absolute;
        top: 0.3rem;
        left: 4%;    
    }
    #Toptext{
        text-align: center;
        line-height: 1rem;
        font-size: 0.3rem;
    }
    

    /* main */
    .main{
        background-color: #f5f5f5;
        margin-top: 1rem;
        width: 100%;
        display: inline-block;
    }

    /* card-type */
    .card-type{
        width: 94%;
        background-color: #ffffff;
        margin: 0.4rem 0.25rem 0.4rem 0.25rem;
        display: flex;
    }
    .card{
        flex: 1;
        text-align: center;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .card :nth-of-type(2){
        font-size: 0.5rem;
    }
    .card :nth-of-type(3){
        color: #b7babc;
    }


    /* recommend-buy */
    .recommend-buy{
        font-size: 0.3rem;
        padding-left: 0.4rem;
        padding-bottom: 0.2rem;
        font-weight: bold;
    }

    /* black-card */
    .black-card{
        /* display: inline-block; */
        width: 95%;
        height: 4.2rem;
        background-image: url("../../../public/bj.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
        margin-left: 0.2rem;
        margin-right: 0.2rem;
        position: relative;
    }
    .card-logo{
        width: 2rem;
        height: 0.5rem;
    }
    .card-text{
        padding-top: 0.5rem;
        padding-left: 0.2rem;
        font-size: 0.7rem;
        color: #EBD7C0;
        line-height: 1rem;
    }
    .unit{
        font-size: 0.3rem;
        vertical-align: middle;
    }
    .card-pirce{
        font-size: 0.8rem;
        vertical-align: middle;
    }
    .card-buy{
        width: 1.6rem;
        height: 0.6rem;
        border-radius: 0.5rem;
        border: none;
        position: absolute;
        top: 3.3rem;
        right: 0.5rem;
        background-color: #ebdbc6;
    }
</style>